//
//  main.cpp
//  Projet A2014
//
//  Created by Jules Thuillier on 03/11/2014.
//  Copyright (c) 2014 Jules Thuillier Erwan Marchand. All rights reserved.
//
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
#include <ctime>
#include "Serveur.h"
#include "Client.h"
#include "CandidatsParser.h"
#include "Journal.h"

int main(int argc, const char * argv[]) {





	std::string type = "";
	do{

		std::cout << "Voulez-vous etre client ou serveur ? (tapez client/serveur)" << std::endl;
		std::getline(std::cin, type);

		if (type == "client")
		{
			Client *client = new Client();
		}

		else if (type == "serveur")
		{
			Serveur *MyServer = new Serveur();
		}

		else
		{
			std::cout << "Preferez-vous quitter ? (tapez quitter)" << std::endl;
			std::getline(std::cin, type);
		}

	} while (type != "quitter");

	return 0;
}

